Protocol-directed weaning